﻿<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */

$this->pageTitle=Yii::app()->name . ' - '.Lang::getResource('contact.us');
$this->breadcrumbs=array(
	Lang::getResource('menu.contact'),
);
?>

<article class="grid_7">
        	
             <div class="extra-wrap indent-top1">
            	<h5><b>CÔNG TY TNHH NHÀ YẾN VIỆT</b></h5>
                <dl class="adress">
                    <dt>161B/62 – 64 Lạc Long Quân, <br>Phường 3,Quận 11, Thành phố Hồ Chí Minh.</dt>
                    <dd><span>Tel :</span>08 626 40659</dd>
                    <dd>E-mail: <a href="mailto:mail@nhayenviet.vn">mail@nhayenviet.vn</a></dd>
                    <dd>Other E-mail: <a href="mailto:nhayenviet@gmail.com">nhayenviet@gmail.com</a></dd>
                    <dd>
                    	<b>Tư vấn – Hỗ trợ kỹ thuật: </b> 
                    </dd>
                    <dd>Mr Trung (Giám đốc): 0938.388.225</dd>
                    
                </dl>
            </div>
            <div class="clear"></div>
        </article>
<article class="grid_5">
<h3><b>Liên hệ </b></h3>

<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php else: ?>

<p>
<?php echo Lang::getResource("contact.form.guide"); ?>
</p>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	
	<p class="note"><span class="required">*</span> -  
		<?php echo Lang::getResource("contact.require"); ?>.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email'); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'phone'); ?>
		<?php echo $form->textField($model,'phone',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'subject'); ?>
		<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'subject'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'body'); ?>
		<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'body'); ?>
	</div>
	<div style="clear: both;"></div>
	<?php if(CCaptcha::checkRequirements()): ?>
	<div class="row">
		<?php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		<?php $this->widget('CCaptcha',array(
    			'buttonLabel' => "Lấy mã khác: ",
    			'showRefreshButton' => true,
    			'clickableImage' => true
			)); ?>
		<?php echo $form->textField($model,'verifyCode'); ?>
		</div>
		<div class="hint">Điền những ký tự trong hình bên.
		<br/>Không phân biệt chữ hoa chữ thường.</div>
		<?php echo $form->error($model,'verifyCode'); ?>
	</div>
	<?php endif; ?>

	<div class="buttons-wrapper">
		<?php echo CHtml::submitButton(Lang::getResource("send"), array("class"=>"button-1")); ?>
		<?php echo CHtml::resetButton(Lang::getResource("clear"), array("class"=>"button-1")); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>
</article>

<div class="clear"></div>